import request from '@/utils/request'

// 查询列表
export function listInfo(query) {
  return request({
      url: '/system/company/getCompanyProductListPage',
    method: 'get',
    params: query
  })
}

// 获取资方类型
export function exportAssetsType() {
    return request({
        url: '/system/assetsTypeInfoController/getAssetsTypeInfoList',
        method: 'get'
    })
}
// 获取资方信息
export function exportAssetsInfo(query) {
    return request({
        url: '/system/assetsInfoController/getAssetsInfoList',
        method: 'get',
        params: query
    })
}

// 弹框中-获取居间方关联产品
export function dialogInfo(query) {
    return request({
        url: '/system/company/getCompanyWithOutProductListPage',
        method: 'get',
        params: query
    })
}

// 弹框中-保存选中的关联产品
export function dialogSave(query) {
    return request({
        url: '/system/company/addCompanyProduct',
        method: 'get',
        params: query
    })
}

// 启停用
export function stopOrOpen(query) {
    return request({
        url: '/system/company/stopOrOpenCompanyProduct',
        method: 'get',
        params: query
    })
}

// 删除 
export function delInfo(query) {
    return request({
        url: '/system/company/deleteCompanyProduct',
        method: 'get',
        params: query
    })
}
